{% extends 'base.html' %}
{% block title %}编辑个人资料{% endblock %}
{% block content %}
    <h1>编辑个人资料</h1>
    {% for message in get_flashed_messages() %}
        <p style="color: red">{{ message }}</p>
    {% endfor %}

    <form action="" method="post" name="edit">
        {{ form.hidden_tag() }}
        <table>
            <tr>
                <td>昵称：</td>
                <td>
                    {{ form.nickname(size=36) }}
                    {% for error in form.errors.nickname %}
                        <span style="color: red">{{ error }}</span>
                    {% endfor %}

                </td>
            </tr>
            <tr>
                <td>个人介绍：</td>
                <td>
                    {{ form.about_me(cols=32, rows=4) }}
                    {% for error in form.errors.about_me %}
                        <span style="color: red">{{ error }}</span>
                    {% endfor %}
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="保存"/></td>
            </tr>
        </table>
    
    </form>
    
{% endblock %}